package cn.zzuli.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

/**
 * @Date: 2020/12/5 14:58
 * @Author: 绯色下午茶
 * @Description:
 * @RibbonClient(name = "PROVIDER-PAYMENT",configuration = MySelfRule.class)
 *  访问 PROVIDER-PAYMENT 服务时，使用自定义的ribbon负载均衡算法
 *  注意，自定义ribbon负载均衡配置类不可写在springboot启动类的同级或子目录下
 *
 */
//@RibbonClient(name = "PROVIDER-PAYMENT",configuration = MySelfRule.class)
@EnableEurekaClient
@EnableDiscoveryClient
@SpringBootApplication
public class OrderMain80 {
    public static void main(String []args){
        SpringApplication.run(OrderMain80.class,args);
    }
}
